//package com.zryc.shop.rabbitmq;
//
//import org.springframework.amqp.rabbit.core.RabbitTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class MQSender {
//
//    @Autowired
//    private RabbitTemplate rabbitTemplate;
//
//    public void sendOrderMessage(String message){
//        rabbitTemplate.convertAndSend("orderExchange","order.msg",message);
//    }
//}
